﻿@model WebShop.Models.HistoryItemModel

<div class="row-fluid">
    <div class="row">
        <div class="span3">
            &nbsp;</div>
        <div class="span6">
            <h3>@Model.Translate("cart") #@Model.Order.Id - @Model.Translate("order_status_" + (int)Model.Order.Status)</h3>
            <table class="table table-striped cart">
                <thead>
                    <tr>
                        <th>@Model.Translate("product_index")</th>
                        <th>@Model.Translate("product_name")</th>
                        <th>@Model.Translate("price")</th>
                        <th>@Model.Translate("count")</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    @{
                        int index = 1;
                    }
                    @foreach (var item in Model.Order.Composition)
                    {
                        <tr>
                            <td>@index
                            </td>
                            <td class="product_name">
                                <a href="@Url.RouteUrl("Product", new RouteValueDictionary { { "id", item.Product.Id } })">@item.Product.Name</a>
                            </td>
                            <td class="product_price">@item.Cost</td>
                            <td class="product_count">@item.Count</td>
                            <td class="product_control">
                            </td>
                        </tr>
                        index++;
                    }
                        <tr>
                            <td></td>
                            <td class="product_name"><b>@Model.Translate("totaly"): </b></td>
                            <td class="product_price" colspan="2">@Model.TotalPrice</td>
                            <td></td>
                        </tr>
                </tbody>
            </table>
        </div>

        <div class="span3">&nbsp;</div>
    </div>
</div>

